package com.zhang.servicedriveruser.controller;


import com.zhang.internalcommon.dto.DriverUserWorkStatus;
import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.servicedriveruser.service.IDriverUserWorkStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 张开琦
 * @since 2025-04-13
 */
@RestController

public class DriverUserWorkStatusController {

	@Autowired
	private IDriverUserWorkStatusService driverUserWorkStatusService;

	@PostMapping("/driver-user-work-status")
	public ResponseResult changeWorkStatus(@RequestBody DriverUserWorkStatus driverUserWorkStatus) {
		ResponseResult responseResult = driverUserWorkStatusService.changeWorkStatus(driverUserWorkStatus);
		return responseResult;
	}
}
